package cn.gene.timeyan.ums.webapi.ums.mapper;

import cn.gene.timeyan.pojo.ums.model.UserDetail;
import cn.gene.timeyan.pojo.ums.vo.UserSimpleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p> 用户详细（不常用）信息表 Mapper 接口</p>*
 *
 * @author LWG
 * @date 2022/7/23 11:16
 * @since 1.0.0@gene.cn
 */
@Repository
public interface UserDetailMapper{
    Integer selectUserScore(Long userId);
    Long selectLoversId(Long userId);
    void updateLoversId(Long userId,Long loversId);
    void updateLoversId1(Long userId);
    /**
     *
     * @param userDetail
     * @return
     */
    Integer insert(UserDetail userDetail);

    /**
     *
     * @param nickname  查找用户
     * @return
     */
    UserDetail getByNickName(String nickname);

    UserSimpleVO selectUserCommentVOByUserId(@Param("userId") Long userId);


    UserDetail getByUserId(Long userId);


}
